﻿@{
    Layout = null;
}
@model DotNet.Model.MyEntity.Base_User
<script src="@Url.Content("/Scripts/jQuery/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("/Scripts/jQuery/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $("#Permission_User_UserEditingPwd").submit(function () {
            return false;
        });
    });

    //回调函数
    function Permission_User_UserEditingPwd_CallBack(json) {
        if (json.statusCode == DWZ.statusCode.ok) {
            //更新成功
            alertMsg.correct(json.message);
            $.pdialog.closeCurrent();
            $("#background,#progressBar").hide();
        }
        else {
            alertMsg.error(json.message);
        }
    }
   
</script>
<div class="pageContentD">
    @using (Html.BeginForm("UserEditingPwd", "User", null, FormMethod.Post, new { onsubmit = "return validateCallback(this,Permission_User_UserEditingPwd_CallBack);", @id = "Permission_User_UserEditingPwd", @class = "pageForm" }))
    { 
        <div class="pageFormContent" layouth="60">
            <table width="95%" class="tab01 tabNo">
                <tr>
                    <td class="td1" style="width:25%;">
                        新密码:
                    </td>
                    <td>
                        @Html.PasswordFor(m => m.UserPassword, new Dictionary<string, object> { { "class", "input02" } })
                        @Html.ValidationMessageFor(m => m.UserPassword)
                        @Html.HiddenFor(m => m.Id)
                    </td>
                </tr>
                <tr>
                    <td class="td1">
                        确认密码:
                    </td>
                    <td>
                    @Html.PasswordFor(m => m.tUserPassword, new Dictionary<string, object> { { "class", "input02" } })
                    @Html.ValidationMessageFor(m => m.tUserPassword)
                </tr>
            </table>
        </div>
        <div class="formBar">
            <ul>
                <li>
                    <button type="submit" class="btn btn-success btn-sm">
                        保存</button></li>
                <li>
                    <button type="button" class="close btn btn-default btn-sm">
                        取消</button></li>
            </ul>
        </div>
    }
</div>
